// 指针变量
// *运算符被称为间接值(indirect velue)或解除引用(dereferencing) 运算符
#include<iostream>

int main(){
    using namespace std;
    int update=6;
    int *p_update;
    p_update = &update;

    cout << "Values: update = " << update;
    cout << ", *p_update = " << *p_update << endl;

    cout << "Address: update = " << &update;
    cout << ", *p_update = " << p_update << endl;

    *p_update = *p_update + 1;
    cout << "Now update = " << update << endl;
    return 0;
}